<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑角色信息</title>
    <link rel="stylesheet" type="text/css" href="/sh/css/addMould.css"/>
    <script type="text/javascript" src="/sh/js/plugin.js"></script>
    <script type="text/javascript" src="/sh/js/comm.js"></script>
    <script type="text/javascript" src="/sh/js/roles/editRoles.js"></script>
</head>
<body>
<div style="margin:10px 0;"></div>
<div class="easyui-panel editRoles-main" title="角色信息"
     style="width:100%;max-width:600px;padding:10px 30px 10px 10px;">
    <form id="editRolesForm" method="post">
        <input type="hidden" th:value="${roles.id}" name="id"/>
        <div class="tb-div">
            <input class="easyui-textbox" id="roleName" name="roleName" th:value="${roles.roleName}"
                   style="width:86%" data-options="label:'角色名称:',required:true,prompt:'必填'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${roles.sign}" id="oldSign"/>
            <input class="easyui-combobox" id="sign" name="sign"
                   style="width:86%" data-options="
                    showItemIcon: true,
					data: [
						{value:'staff',text:'员工',iconCls:'icon-help'},
						{value:'admin',text:'管理员',iconCls:'icon-man'},
						{value:'superadmin',text:'超级管理员',iconCls:'icon-more'}
					],
					editable: false,
					panelHeight: 'auto',
					label: '角色标识:',
					labelPosition: 'left'"/>
        </div>
        <div class="tb-div">
            <input type="hidden" th:value="${roles.status}" id="oldStatus"/>
            <input class="easyui-combobox" id="status" name="status"
                   style="width:86%" data-options="
                    showItemIcon: false,
					data: [
						{value:'on',text:'启用',iconCls:'icon-ok'},
						{value:'off',text:'停用',iconCls:'icon-no'}
					],
					editable: false,
					panelHeight: 'auto',
					label: '状态:',
					labelPosition: 'left'"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="described" th:value="${roles.described}"
                   style="width:86%" data-options="label:'描述:'"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="remark" th:value="${roles.remark}"
                   style="width:86%" data-options="label:'备注:'"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="createNickname1" th:value="${roles.createNickname}"
                   style="width:86%" data-options="label:'创建人:',editable:false"/>
        </div>
        <div class="tb-div">
            <input class="easyui-textbox" name="created1" th:value="${#dates.format(roles.created, 'yyyy年MM月dd日 HH时mm分ss秒')}"
                   style="width:86%" data-options="label:'创建时间:',editable:false"/>
        </div>
    </form>
    <div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" id="save"
           style="width:85px" iconCls="icon-save">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" id="clear"
           style="width:85px" iconCls="icon-clear">重置</a>
    </div>
</div>
</body>
</html>